package com.guage.task;

import java.util.concurrent.Callable;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import com.guage.commons.utils.JsonUtils;
import com.guage.service.IRoleService;

public class CallableThread implements Callable<Object>{
	private static  Logger logger = LogManager.getLogger(CallableThread.class);
	private IRoleService roleService;
	public CallableThread(IRoleService roleService) {
		this.roleService = roleService;
	}
	public Object call() throws Exception {
		String cron = "";
		Object obj = roleService.selectTree();
		logger.info("数据库中获取的数据为：-----------"+JsonUtils.toJson(obj));
		cron = "0/10 * * * * ?";
		return obj;
	}

}
